package com.fbty.mt.action.admin;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.fbty.base.action.BaseAction;
import com.fbty.base.domain.Page;
import com.fbty.mt.domain.OnlyIpInfo;
import com.fbty.mt.service.IpService;
import com.fbty.mt.service.OtherService;
import com.fbty.mt.service.TabIpLogService;

@SuppressWarnings("serial")
public class LogAction extends BaseAction{
	private Page page;
	private TabIpLogService tabIpLogService;
	private int pageNo=1;
	private Integer id;
	private int pageSize=20;
	public String pageLog() throws Exception {
		page = tabIpLogService.pageLog(pageNo, pageSize);
		return SUCCESS;
	}
	public String delLog() throws Exception {
		if(id != null) {
			tabIpLogService.deleteLog(id);
		}
		return SUCCESS;
	}
	public Page getPage() {
		return page;
	}
	public void setPage(Page page) {
		this.page = page;
	}
	public TabIpLogService getTabIpLogService() {
		return tabIpLogService;
	}
	public void setTabIpLogService(TabIpLogService tabIpLogService) {
		this.tabIpLogService = tabIpLogService;
	}
	public int getPageNo() {
		return pageNo;
	}
	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
}
